package com.mes.cloud.api.dto.request.role;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;

/**
 * 角色岗位类型关联表
 * 
 * @author wxm
 * @version 2019-08-03 14:47:34
 * @email xiaomin.wu1@pactera.com
 */
@Data
public class PositionTypePageListRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @DecimalMax(value = "1000", message = "currentPage不能超过1000")
    private int pageSize;

    @ApiModelProperty(value = "排序", required = false)
    private String orderBy;

    @ApiModelProperty(value = "角色ID", required = true)
    @NotEmpty(message = "roleId不能为空")
    private String roleId;

    @ApiModelProperty(value = "岗位类型名称", required = false)
    private String queryString;

}
